package correct.day11;

import java.util.Scanner;

public class Test3 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String str = in.nextLine();
        String[] arr = str.split(" ");
        int len = arr.length;
        int i = 0;
        while(i < len / 2) {
            String tmp = arr[i];
            arr[i] = arr[len - 1 - i];
            arr[len - 1 - i] = tmp;
            i++;
        }
        StringBuffer string = new StringBuffer();
        for(i = 0; i < len; i++) {
            string.append(arr[i]);
            if(i != len - 1) {
                string.append(" ");
            }
        }
        System.out.println(string);

    }
}
